import 'config.dart';
import 'strings.dart';

///国际化类型
enum LocalizationType {
  ///中文
  zh,

  ///英语
  en,
}

extension LocalizationString on String {
  String get ls {
    switch (LocalizationStrings.type) {
      case LocalizationType.en:
        return en;

      default:
        return this;
    }
  }

  ///英语
  String get en {
    return Ls.ens[this] ?? this;
  }
}
